﻿using System;

class Matrix
{
    static void Main()
    {
        int number;
        string inputString;
        Console.WriteLine("12. Printing matrix by given N.\n");
        Console.Write("Enter N =");
        inputString = Console.ReadLine();
        Console.WriteLine("\n");
        number = int.Parse(inputString);
        for (int i = 0; i < number; i++)
        {
            for (int j = i + 1; j <= number + i; j++)
            {
                Console.Write("{0} ", j);
            }
            Console.WriteLine("\n");

        }

    }
}

